package plantshop;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.Map;

import javax.swing.JFrame;

import plantshop.model.TutorialPlayer;
import plantshop.view.MainMenu;


public class GameStarter {
	final static Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
	final static int frameWidth = screenSize.width;
   	final static int frameHeight = screenSize.height;
   	
   	public static void runTutorial(Map<String, BufferedImage> images, JFrame frame, String name, boolean gender, Map<String, BufferedImage[]> animations){
   		frame.getContentPane().removeAll();
   		new TutorialPlayer(images, frame, name, gender, animations);
   	}
   	
	public static void main(String[] args) throws IOException{
		JFrame frame = new JFrame();
		frame.getContentPane().add(new MainMenu(frame));
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(screenSize);
        frame.setTitle("Plant Tycoon");
        frame.setVisible(true);
        frame.setResizable(false);
	}
}
